home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KDChartAxisParams.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  21.5 KB  |  516 lines

  1. /* -*- Mode: C++ -*-
  2.    KDChart - a multi-platform charting engine
  3.    */
  4.  
  5. /****************************************************************************
  6.  ** Copyright (C) 2001-2003 Klar├ñlvdalens Datakonsult AB.  All rights reserved.
  7.  **
  8.  ** This file is part of the KDChart library.
  9.  **
  10.  ** This file may be distributed and/or modified under the terms of the
  11.  ** GNU General Public License version 2 as published by the Free Software
  12.  ** Foundation and appearing in the file LICENSE.GPL included in the
  13.  ** packaging of this file.
  14.  **
  15.  ** Licensees holding valid commercial KDChart licenses may use this file in
  16.  ** accordance with the KDChart Commercial License Agreement provided with
  17.  ** the Software.
  18.  **
  19.  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20.  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21.  **
  22.  ** See http://www.klaralvdalens-datakonsult.se/?page=products for
  23.  **   information about KDChart Commercial License Agreements.
  24.  **
  25.  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
  26.  ** licensing are not clear to you.
  27.  **
  28.  **********************************************************************/
  29. #ifndef __KDCHARTAXISPARAMS_H__
  30. #define __KDCHARTAXISPARAMS_H__
  31.  
  32. #include <qfont.h>
  33. #include <qcolor.h>
  34. #include <qmap.h>
  35. #include <qobject.h>
  36. #include <qtextstream.h>
  37. #include <qstringlist.h>
  38. #include <qdatetime.h>
  39. #include <qvariant.h>
  40.  
  41. #include "KDChartGlobal.h"
  42. #include "KDChartEnums.h"
  43.  
  44. class KDChartParams;
  45.  
  46. /**
  47.   Use this to specify that the axis label limits
  48.   are to be calculated automatically.
  49.  
  50.   \sa setAxisValues
  51.   */
  52. #define KDCHART_AXIS_LABELS_AUTO_LIMIT QVariant( 140319.64 )
  53. // If you edit the above, also edit KD Chart.cpp
  54.  
  55. /**
  56.   Use this to specify that the step-width from one label
  57.   to the other shall be calculated automatically.
  58.  
  59.   \sa setAxisValues
  60.   */
  61. #define KDCHART_AXIS_LABELS_AUTO_DELTA 140319.64
  62.  
  63. /**
  64.   Use this to specify that an automatically computed amount of
  65.   axis labels are to be skipped if there is not enough space
  66.   for displaying all of them.
  67.   This is usefull in case you have lots of entries in one dataset.
  68.  
  69.   \sa setAxisValues
  70.   */
  71. #define KDCHART_AXIS_LABELS_AUTO_LEAVEOUT 14364
  72.  
  73. /**
  74.   Use this to specify that date/time format to be used for
  75.   displaying the axis labels is to be determined automatically.
  76.   */
  77. #define KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT "AUTO"
  78.  
  79. /**
  80.   Use this to specify that the number of digits to be shown
  81.   on the axis labels behind the comma is to be calculated
  82.   automatically.
  83.  
  84.   \sa setAxisValues
  85.   */
  86. #define KDCHART_AXIS_LABELS_AUTO_DIGITS 14364
  87.  
  88. /**
  89.   Use this to reset the grid colour to its default value
  90.   for re-doing changes made by calling \c setAxisGridColor().
  91.  
  92.   \sa setAxisGridColor
  93.   */
  94.  
  95.  
  96. #define KDCHART_DEFAULT_AXIS_GRID_COLOR QColor( 0xA0, 0xA0, 0xA0 )
  97.  
  98. /**
  99.   Use this to specify that the width of the axis grid lines
  100.   shall be equal to the width of the axis line.
  101.  
  102.   \sa setAxisGridLineWidth
  103.   */
  104. #define KDCHART_AXIS_GRID_AUTO_LINEWIDTH 14364
  105.  
  106. /**
  107.   Use this to specify that the zero-line shall NOT be omitted
  108.   in case all of the data are grouped far away from zero.
  109.  
  110.   \sa setAxisValues
  111.   */
  112. #define KDCHART_AXIS_IGNORE_EMPTY_INNER_SPAN 1
  113.  
  114. /**
  115.   Use this to prevent \c setAxisValues from changing the current
  116.   setting of _axisMaxEmptyInnerSpan.
  117.  
  118.   \sa setAxisValues
  119.   */
  120.  
  121. #define KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW -2
  122.  
  123.  
  124.  
  125.  
  126. /** \file KDChartAxisParams.h
  127.   \brief Provide access to the chart axis parameters.
  128.  
  129.   Use the KDChartAxisParams class to modify parameters of one axis each.
  130.   */
  131.  
  132. class KDCHART_EXPORT KDChartAxisParams : public QObject
  133. {
  134.     Q_OBJECT
  135.     Q_ENUMS(AxisType)
  136.     Q_ENUMS(AxisPos)
  137.     Q_ENUMS(AxisAreaMode)
  138.     Q_ENUMS(AxisCalcMode)
  139.     Q_ENUMS(LabelsFromDataRow)
  140.     Q_ENUMS(ValueScale)
  141.  
  142.     // Neede by QSA
  143.     Q_ENUMS( PenStyle )
  144.  
  145. public:
  146.  
  147.     enum AxisType { AxisTypeUnknown,
  148.                     AxisTypeEAST,
  149.                     AxisTypeNORTH,
  150.                     AxisUP };
  151.  
  152. public slots:  // PENDING(blackie) Go through this file and reorder, so all slots are in one section
  153.     void setAxisType( AxisType axisType );
  154.  
  155.  
  156.     AxisType axisType() const { return _axisType; }
  157.     static QString axisTypeToString( AxisType type );
  158.     static AxisType stringToAxisType( const QString& type );
  159.  
  160. public:
  161.  
  162.     // Attention: In case you extent AxisPos, make sure to also
  163.     //            increase MAX_AXES and AxisPosEND.
  164.     enum AxisPos { AxisPosSTART = 0,
  165.  
  166.                    AxisPosBottom         = 0,
  167.                    AxisPosSagittal            = 0,  //   <-- for POLAR charts
  168.                    AxisPosSaggital            = 0,  //   <-- wrong spelling kept for backward compatibility
  169.                    AxisPosLeft           = 1,
  170.                    AxisPosCircular            = 1,  //   <-- for POLAR charts
  171.                    AxisPosLowerRightEdge = 2,
  172.  
  173.                    AxisPosTop = 3,
  174.                    AxisPosRight = 4,
  175.                    AxisPosLowerLeftEdge = 5,
  176.  
  177.                    // diese Markierung muss jeweils mitgepflegt werden,
  178.                    // wenn AxisPos erweitert werden sollte.
  179.                    AxisPosAdditionalsSTART = 6,
  180.  
  181.                    AxisPosBottom2 = 6,
  182.                    AxisPosLeft2 = 7,
  183.                    AxisPosLowerRightEdge2 = 8,
  184.  
  185.                    AxisPosTop2 = 9,
  186.                    AxisPosRight2 = 10,
  187.                    AxisPosLowerLeftEdge2 = 11,
  188.                    // auch diese Markierung muss jeweils mitgepflegt werden,
  189.                    // wenn AxisPos erweitert werden sollte.
  190.                    AxisPosEND = 11 };
  191.  
  192. public slots:
  193.     static AxisPos basicAxisPos( uint pos );
  194.     void setAxisVisible( bool axisVisible );
  195.     bool axisVisible() const;
  196.  
  197. public:
  198.     enum AxisAreaMode { AxisAreaModeFixedSize,
  199.                         AxisAreaModeAutoSize,
  200.                         AxisAreaModeMinMaxSize };
  201.  
  202. public slots:
  203.     void setAxisAreaMode( AxisAreaMode axisAreaMode );
  204.     AxisAreaMode axisAreaMode() const;
  205.     static QString axisAreaModeToString( AxisAreaMode mode );
  206.     static AxisAreaMode stringToAxisAreaMode( const QString& type );
  207.     void setAxisAreaMin( int axisAreaMin );
  208.  
  209.     //Returns the axis area minimum width (or height, resp.).
  210.     int axisAreaMin() const { return _axisAreaMin; }
  211.     void setAxisUseAvailableSpace( int axisUseAvailableSpaceFrom,
  212.                                    int axisUseAvailableSpaceTo );
  213.     int axisUseAvailableSpaceFrom() const { return _axisUseAvailableSpaceFrom; }
  214.     int axisUseAvailableSpaceTo() const { return _axisUseAvailableSpaceTo; }
  215.     void setAxisAreaMax( int axisAreaMax );
  216.     int axisAreaMax() const { return _axisAreaMax; }
  217.     void setAxisArea( AxisAreaMode axisAreaMode,
  218.                       int axisAreaMin,
  219.                       int axisAreaMax );
  220.  
  221. public:
  222.     enum AxisCalcMode { AxisCalcLinear, AxisCalcLogarithmic };
  223.  
  224. public slots:
  225.     void setAxisCalcMode( AxisCalcMode axisCalcMode );
  226.     AxisCalcMode axisCalcMode() const { return _axisCalcMode; }
  227.     static QString axisCalcModeToString( AxisCalcMode mode );
  228.     static AxisCalcMode stringToAxisCalcMode( const QString& type );
  229.     void setIsometricReferenceAxis( uint isoRefAxis );
  230.     uint isometricReferenceAxis() const { return _axisIsoRefAxis; }
  231.     void setAxisTrueAreaSize( int axisTrueAreaSize ) { _axisTrueAreaSize = axisTrueAreaSize; }
  232.     int axisTrueAreaSize() const { return _axisTrueAreaSize; }
  233.     void setAxisTrueAreaRect( const QRect& axisTrueAreaRect ) { _axisTrueAreaRect = axisTrueAreaRect; }
  234.     QRect axisTrueAreaRect() const { return _axisTrueAreaRect; }
  235.     void setAxisLineVisible( bool axisLineVisible );
  236.     bool axisLineVisible() const { return _axisLineVisible; }
  237.     void setAxisLineWidth( int axisLineWidth );
  238.     int axisLineWidth() const { return _axisLineWidth; }
  239.     void setAxisTrueLineWidth( int axisTrueLineWidth ) { _axisTrueLineWidth = axisTrueLineWidth; }
  240.     int axisTrueLineWidth() const { return _axisTrueLineWidth; }
  241.     void setAxisLineColor( QColor axisLineColor );
  242.     QColor axisLineColor() const { return _axisLineColor; }
  243.     // main grid:
  244.     void setAxisShowFractionalValuesDelimiters( bool axisShowFractValDelim );
  245.     bool axisShowFractionalValuesDelimiters() const { return _axisShowFractionalValuesDelimiters; }
  246.     void setAxisShowGrid( bool axisShowGrid );
  247.     bool axisShowGrid() const { return _axisShowGrid; }
  248.     void setAxisGridStyle( PenStyle axisGridStyle );
  249.     PenStyle axisGridStyle() const { return _axisGridStyle; }
  250.     void setAxisGridColor( QColor axisGridColor );
  251.     QColor axisGridColor() const { return _axisGridColor; }
  252.     void setAxisGridLineWidth( int axisGridLineWidth );
  253.     int axisGridLineWidth() const { return _axisGridLineWidth; }
  254.     // sub grid:
  255.     void setAxisShowSubDelimiters( bool axisShowSubDelimiters );
  256.     bool axisShowSubDelimiters() const { return _axisShowSubDelimiters; }
  257.     void setAxisGridSubStyle( PenStyle axisGridSubStyle );
  258.     PenStyle axisGridSubStyle() const { return _axisGridSubStyle; }
  259.     void setAxisGridSubColor( QColor axisGridSubColor );
  260.     QColor axisGridSubColor() const { return _axisGridSubColor; }
  261.     void setAxisGridSubLineWidth( int axisGridSubLineWidth );
  262.     int axisGridSubLineWidth() const { return _axisGridSubLineWidth; }
  263.  
  264.     void setAxisZeroLineColor( QColor axisZeroLineColor );
  265.     QColor axisZeroLineColor() const { return _axisZeroLineColor; }
  266.  
  267.     void setAxisLabelsVisible( bool axisLabelsVisible );
  268.     bool axisLabelsVisible() const { return _axisLabelsVisible; }
  269.     void setAxisLabelsTouchEdges( bool axisLabelsTouchEdges );
  270.     bool axisLabelsTouchEdges() const { return _axisLabelsTouchEdges; }
  271.     void setAxisLabelsFont( QFont axisLabelsFont, bool useFontSize );
  272.     QFont axisLabelsFont() const { return _axisLabelsFont; }
  273.     void setAxisLabelsFontUseRelSize( bool axisLabelsFontUseRelSize );
  274.     bool axisLabelsFontUseRelSize() const { return _axisLabelsFontUseRelSize; }
  275.     void setAxisLabelsFontRelSize( int axisLabelsFontRelSize );
  276.     int axisLabelsFontRelSize() const { return _axisLabelsFontRelSize;  }
  277.     void setAxisLabelsFontMinSize( int axisLabelsFontMinSize ) { _axisLabelsFontMinSize = axisLabelsFontMinSize; }
  278.     int axisLabelsFontMinSize() const { return _axisLabelsFontMinSize;  }
  279.     void setAxisLabelsDontShrinkFont( bool labelsDontShrinkFont ) { _axisLabelsDontShrinkFont = labelsDontShrinkFont; }
  280.     bool axisLabelsDontShrinkFont() const { return _axisLabelsDontShrinkFont; }
  281.     void setAxisLabelsDontAutoRotate( bool labelsDontAutoRotate ) { _axisLabelsDontAutoRotate = labelsDontAutoRotate; }
  282.     bool axisLabelsDontAutoRotate() const { return _axisLabelsDontAutoRotate; }
  283.     void setAxisLabelsRotation( int rotation ) { _axisLabelsRotation = rotation; }
  284.     int axisLabelsRotation() const { return _axisLabelsRotation; }
  285.     void setAxisLabelsColor( QColor axisLabelsColor );
  286.     QColor axisLabelsColor() const { return _axisLabelsColor; }
  287.  
  288.     void setAxisLabelsCalc( int divPow10 = 0,
  289.                             int digitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS );
  290.     int axisLabelsDivPow10()          const { return _axisLabelsDivPow10; }
  291.     int axisLabelsDigitsBehindComma() const { return _axisDigitsBehindComma; }
  292.     void setAxisLabelsRadix( const QString& decimalPoint,
  293.                              const QString& thousandsPoint );
  294.     QString axisLabelsDecimalPoint()   const { return _axisLabelsDecimalPoint; }
  295.     QString axisLabelsThousandsPoint() const { return _axisLabelsThousandsPoint; }
  296.  
  297.     void setAxisLabelsNotation( KDChartEnums::NumberNotation notation );
  298.     KDChartEnums::NumberNotation axisLabelsNotation() const { return _axisLabelsNotation; }
  299.  
  300.     void setAxisLabelsFormat( const QString& prefix = "",
  301.                               const QString& postfix = "",
  302.                               const int&     totalLen = 0,
  303.                               const QChar&   padFill = ' ',
  304.                               const bool&    blockAlign = true );
  305.     QString axisLabelsPrefix()         const { return _axisLabelsPrefix; }
  306.     QString axisLabelsPostfix()        const { return _axisLabelsPostfix; }
  307.     int axisLabelsTotalLen()           const { return _axisLabelsTotalLen; }
  308.     QChar axisLabelsPadFill()          const { return _axisLabelsPadFill; }
  309.     bool axisLabelsBlockAlign()        const { return _axisLabelsBlockAlign; }
  310.  
  311. public:
  312.     enum LabelsFromDataRow { LabelsFromDataRowYes,
  313.                              LabelsFromDataRowNo,
  314.                              LabelsFromDataRowGuess };
  315.  
  316. public slots:
  317.     static QString labelsFromDataRowToString( LabelsFromDataRow mode );
  318.     static LabelsFromDataRow stringToLabelsFromDataRow( const QString& type );
  319.  
  320. public:
  321.     enum ValueScale { ValueScaleNumerical =   0, // have gaps here to allow specifying of additional scaling steps in between
  322.                       ValueScaleSecond    =  20,
  323.                       ValueScaleMinute    =  30,
  324.                       ValueScaleHour      =  40,
  325.                       ValueScaleDay       =  50,
  326.                       ValueScaleWeek      =  60,
  327.                       ValueScaleMonth     =  70,
  328.                       ValueScaleQuarter   =  80,
  329.                       ValueScaleYear      =  90 };
  330.  
  331. public slots:
  332.     void setAxisValues( bool axisSteadyValueCalc = true,
  333.                         const QVariant& axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT,
  334.                         const QVariant& axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT,
  335.                         double axisValueDelta = KDCHART_AXIS_LABELS_AUTO_DELTA,
  336.                         int axisDigitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS,
  337.                         int axisMaxEmptyInnerSpan = KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW,
  338.                         LabelsFromDataRow takeLabelsFromDataRow = LabelsFromDataRowNo,
  339.                         int labelTextsDataRow = 0,
  340.                         QStringList* axisLabelStringList = 0,
  341.                         QStringList* axisShortLabelsStringList = 0,
  342.                         int axisValueLeaveOut = KDCHART_AXIS_LABELS_AUTO_LEAVEOUT,
  343.                         ValueScale axisValueDeltaScale = ValueScaleNumerical );
  344.  
  345.  
  346.     void setAxisValueStartIsExact( bool isExactValue=true ) { _axisValueStartIsExact = isExactValue; }
  347.     bool axisValueStartIsExact() const { return _axisValueStartIsExact; }
  348.     void setAxisValueStart( const QVariant& axisValueStart ) { _axisValueStart = axisValueStart; }
  349.     QVariant axisValueStart() const { return _axisValueStart; }
  350.   void setAxisValueEnd( const QVariant& axisValueEnd ) {_axisValueEnd = axisValueEnd; }
  351.     QVariant axisValueEnd() const { return _axisValueEnd; }
  352.     void setAxisValueDelta( const double axisValueDelta,
  353.                             ValueScale scale = ValueScaleNumerical );
  354.     double axisValueDelta() const { return _axisValueDelta; }
  355.     ValueScale axisValueDeltaScale() const { return _axisValueDeltaScale; }
  356.     void setAxisValueLeaveOut( const int leaveOut ) { _axisValueLeaveOut = leaveOut; }
  357.     int axisValueLeaveOut() const { return _axisValueLeaveOut; }
  358.     void setAxisValuesDecreasing( bool valuesDecreasing = true )
  359.     {
  360.         _axisValuesDecreasing = valuesDecreasing;
  361.     }
  362.     bool axisValuesDecreasing() const { return _axisValuesDecreasing; }
  363.     void setTrueAxisDeltaPixels( double nDeltaPixels ) { _trueAxisDeltaPixels = nDeltaPixels; }
  364.     double trueAxisDeltaPixels() const { return _trueAxisDeltaPixels; }
  365.     void setTrueAxisLowHighDelta( double nLow, double nHigh, double nDelta );
  366.     double trueAxisLow() const { return _trueLow; }
  367.     double trueAxisHigh() const { return _trueHigh; }
  368.     double trueAxisDelta() const { return _trueDelta; }
  369.     void setTrueAxisDtLowHighDeltaScale( QDateTime dtLow, QDateTime dtHigh,
  370.                                          ValueScale dtDeltaScale );
  371.     void setTrueAxisDtLow( QDateTime dtLow ) {  _trueDtLow        = dtLow; }
  372.     void setTrueAxisDtHigh( QDateTime dtHigh ) { _trueDtHigh       = dtHigh; }
  373.     void setTrueAxisDtScale( ValueScale scale ) { _trueDtDeltaScale = scale; }
  374.     QDateTime trueAxisDtLow() const { return _trueDtLow; }
  375.     QDateTime trueAxisDtHigh() const { return _trueDtHigh; }
  376.     ValueScale trueAxisDtDeltaScale() const { return _trueDtDeltaScale; }
  377.     void setAxisZeroLineStart( double x, double y );
  378.     double axisZeroLineStartX() const { return _axisZeroLineStartX; }
  379.     double axisZeroLineStartY() const { return _axisZeroLineStartY; }
  380.     void setAxisDtLowPos( double x, double y );
  381.     double axisDtLowPosX() const { return _axisDtLowPosX; }
  382.     double axisDtLowPosY() const { return _axisDtLowPosY; }
  383.     void setAxisDtHighPos( double x, double y );
  384.     double axisDtHighPosX() const { return _axisDtHighPosX; }
  385.     double axisDtHighPosY() const { return _axisDtHighPosY; }
  386.     void setAxisDigitsBehindComma( const int digits ) { _axisDigitsBehindComma = digits; }
  387.     int axisDigitsBehindComma() const { return _axisDigitsBehindComma; }
  388.     void setAxisLabelsDateTimeFormat( const QString& format ) { _axisLabelsDateTimeFormat = format; }
  389.     QString axisLabelsDateTimeFormat() const { return _axisLabelsDateTimeFormat; }
  390.     void setAxisMaxEmptyInnerSpan( const int maxEmpty ) { _axisMaxEmptyInnerSpan = maxEmpty; }
  391.     int axisMaxEmptyInnerSpan() const { return _axisMaxEmptyInnerSpan; }
  392.     void setLabelTextsFormDataRow( int row, LabelsFromDataRow mode );
  393.     LabelsFromDataRow axisLabelTextsFormDataRow() const { return _takeLabelsFromDataRow; }
  394.     int labelTextsDataRow() const { return _labelTextsDataRow; }
  395.     void setAxisLabelStringLists( QStringList*   axisLabelStringList,
  396.                                   QStringList*   axisShortLabelStringList,
  397.                                   const QString& valueStart = QString::null,
  398.                                   const QString& valueEnd   = QString::null );
  399.     QStringList axisLabelStringList() const { return _axisLabelStringList; }
  400.     uint axisLabelStringCount() const { return _axisLabelStringList.count(); }
  401.     QStringList axisShortLabelsStringList() const { return _axisShortLabelsStringList; }
  402.     uint axisShortLabelsStringCount() const { return _axisShortLabelsStringList.count(); }
  403.     const QStringList* axisLabelTexts() const { return _axisLabelTextsDirty ? 0 : &_axisLabelTexts; }
  404.     void setAxisLabelTexts( const QStringList* axisLabelTexts );
  405.     void setAxisLabelTextsDirty( bool axisLabelTextsDirty ) { _axisLabelTextsDirty = axisLabelTextsDirty; }
  406.     bool axisLabelTextsDirty() const { return _axisLabelTextsDirty; }
  407.     void setAxisFirstLabelText( const QString& axisFirstLabelText = QString() );
  408.     void setAxisLastLabelText(  const QString& axisLastLabelText  = QString() );
  409.     QString axisFirstLabelText() const { return _axisFirstLabelText; }
  410.     QString axisLastLabelText()  const { return _axisLastLabelText; }
  411.     bool hasAxisFirstLabelText() const { return !_axisFirstLabelText.isNull(); }
  412.     bool hasAxisLastLabelText()  const { return !_axisLastLabelText.isNull(); }
  413.     void setAxisSteadyValueCalc( bool axisSteadyValueCalc ) { _axisSteadyValueCalc = axisSteadyValueCalc; }
  414.     bool axisSteadyValueCalc() const { return _axisSteadyValueCalc; }
  415.  
  416. public:
  417.     KDChartAxisParams();
  418.     virtual ~KDChartAxisParams();
  419.     KDChartAxisParams& operator=( const KDChartAxisParams& R );
  420.     static void deepCopy( KDChartAxisParams& D, const KDChartAxisParams& R );
  421.     friend QTextStream& operator<<( QTextStream& s, const KDChartParams& p );
  422.     friend QTextStream& operator>>( QTextStream& s, KDChartParams& p );
  423.     friend class KDChartParams;
  424.  
  425. signals:
  426.  
  427.     // emitted when any of the chart axis parameters have changed.
  428.     void changed();
  429.  
  430. private:
  431.  
  432.     AxisType _axisType;
  433.     bool _axisVisible;
  434.     bool _axisLabelsTouchEdges;
  435.     AxisAreaMode _axisAreaMode;
  436.     int _axisUseAvailableSpaceFrom;
  437.     int _axisUseAvailableSpaceTo;
  438.     int _axisAreaMin;
  439.     int _axisAreaMax;
  440.     AxisCalcMode _axisCalcMode;
  441.     uint _axisIsoRefAxis;
  442.     int _axisTrueAreaSize;
  443.     QRect _axisTrueAreaRect;
  444.     bool _axisLineVisible;
  445.     int _axisLineWidth;
  446.     int _axisTrueLineWidth;
  447.     QColor _axisLineColor;
  448.  
  449.     bool     _axisShowFractionalValuesDelimiters;
  450.     bool     _axisShowGrid;
  451.     QColor   _axisGridColor;
  452.     int      _axisGridLineWidth;
  453.     PenStyle _axisGridStyle;
  454.  
  455.     bool     _axisShowSubDelimiters;
  456.     QColor   _axisGridSubColor;
  457.     int      _axisGridSubLineWidth;
  458.     PenStyle _axisGridSubStyle;
  459.  
  460.     QColor _axisZeroLineColor;
  461.     bool _axisLabelsVisible;
  462.     QFont _axisLabelsFont;
  463.     bool _axisLabelsFontUseRelSize;
  464.     int _axisLabelsFontRelSize;
  465.     int _axisLabelsFontMinSize;
  466.     bool _axisLabelsDontShrinkFont;
  467.     bool _axisLabelsDontAutoRotate;
  468.     int _axisLabelsRotation;
  469.     QColor _axisLabelsColor;
  470.  
  471.     bool     _axisSteadyValueCalc;
  472.     bool     _axisValueStartIsExact;
  473.     QVariant _axisValueStart;
  474.     QVariant _axisValueEnd;
  475.     double   _axisValueDelta;
  476.     ValueScale _axisValueDeltaScale;
  477.     int _axisValueLeaveOut;
  478.     bool _axisValuesDecreasing;
  479.     double _trueAxisDeltaPixels;
  480.     double _trueLow;
  481.     double _trueHigh;
  482.     double _trueDelta;
  483.     QDateTime _trueDtLow;
  484.     QDateTime _trueDtHigh;
  485.     ValueScale _trueDtDeltaScale;
  486.     double _axisZeroLineStartX;
  487.     double _axisZeroLineStartY;
  488.     double _axisDtLowPosX;
  489.     double _axisDtLowPosY;
  490.     double _axisDtHighPosX;
  491.     double _axisDtHighPosY;
  492.     int _axisDigitsBehindComma;
  493.     QString _axisLabelsDateTimeFormat;
  494.     int _axisMaxEmptyInnerSpan;
  495.     LabelsFromDataRow _takeLabelsFromDataRow;
  496.     int _labelTextsDataRow;
  497.     QStringList _axisLabelStringList;
  498.     QStringList _axisShortLabelsStringList;
  499.     QStringList _axisLabelTexts;
  500.     bool _axisLabelTextsDirty;
  501.     QString _axisFirstLabelText;
  502.     QString _axisLastLabelText;
  503.  
  504.     int _axisLabelsDivPow10;
  505.     QString _axisLabelsDecimalPoint;
  506.     QString _axisLabelsThousandsPoint;
  507.     KDChartEnums::NumberNotation _axisLabelsNotation;
  508.     QString _axisLabelsPrefix;
  509.     QString _axisLabelsPostfix;
  510.     int     _axisLabelsTotalLen;
  511.     QChar   _axisLabelsPadFill;
  512.     bool    _axisLabelsBlockAlign;
  513. };
  514.  
  515. #endif
  516.